#!/usr/bin/python
# -*- coding: utf-8 -*-

import Image
import sys

def write_image_with_splitline(im, iw, ih, blocks, output):
	nim = im.copy()
        pix = nim.load()
        idx = 0
        for s,e in blocks:
                for p in range(iw):
                        pix[p, s] = 0
                        pix[p, e] = 0
                idx = idx + 1
        nim.save(output)	
